<div class="right01"><img src="content/images/04.gif" /> <a href="<?php echo site_url(); ?>/C_Main/index/">主页</a> &gt; <span>基础内容配置</span> 
    <span style="position:absolute;right:0px; padding-right: 15px">
        <span style="cursor:pointer" onclick="window.location.href='<?php echo site_url(); ?>/basic/C_Basic_Product_Edit';">[新建]</span> &nbsp;&nbsp;
    </span>
</div>
<div>
    <table id="table-element" class="tables">
        <thead> 
            <tr>
                <th>编号</th>
                <th>产品名称</th>
                <th>产品单位</th>
                <th>操作</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <?PhP
            if (is_array($listView)) {
                foreach ($listView as $productList) {
                    ?>
                    <tr>
                        <td><?PHP echo $productList['pt_id']; ?></td>
                        <td><?PHP echo $productList['pt_name']; ?></td>
                        <td><?PHP echo $productList['pt_units']; ?></td>
                        <td><a href="<?php echo site_url(); ?>/basic/C_Basic_Product_Edit/index/<?PHP echo $productList['pt_id']; ?>">[编辑]</a></td>
                        <td><a href="javascript:void(0);" onClick="del('<?PHP echo $productList['pt_id']; ?>')">[删除]</a></td>
                    </tr>
                    <?PhP
                }
            }
            ?>

        </tbody>
    </table>
</div>
<script id="scriptInit" type="text/javascript">
    function del(id){
        $.prompt("是否删除该信息？", {
            title: "提示",
            buttons: { "删除": true, "取消": false },
            submit: function(e,v,m,f){
                if (v) {
                    window.location.href="<?php echo site_url(); ?>/basic/C_Basic_Product_List/delete/"+id;
                }
            }
        });
    }
</script>